package org.xlx.xlx_oa.warehouse.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.xlx.xlx_oa.common.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Warehouse对象", description = "")
public class Warehouse extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "仓库id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "仓库名称")
    private String title;

    @ApiModelProperty(value = "仓库描述")
    private String description;

    @ApiModelProperty(value = "主要负责人id")
    private Long userId;

    @ApiModelProperty(value = "仓库地址")
    private String address;

    @ApiModelProperty(value = "仓库容量m³")
    private Integer capacity;

    @ApiModelProperty(value = "设立时间")
    private LocalDateTime establishTime;
}
